<link href="../css/style_common_album.css" rel="stylesheet" type="text/css" />
<link href="../css/albumkhachhang.css" rel="stylesheet" type="text/css" />

<?php
	   require_once("../source/module/function_global.php");
       require_once("ketnoi_csdl.php");
       $sql="SELECT NAME_ALBUM, PATH_ALBUM, URL_ALBUM, DESCRIPTION FROM album ORDER BY CREATEDAY DESC LIMIT 5";
       $result = mysql_query($sql,$con);
       while($rows[] = mysql_fetch_array($result));
?>

<form action='../source/viewalbumcuoi.php' method='post' id='album1'>
	<div class='view view-first' id='table'>
	<a href='#' onclick='album1.submit()'><img src="../image/album/album1.jpg" />
	<div class="mask"><h2><?php 
							if(isset($rows[0]['NAME_ALBUM'])){
									echo $rows[0]['NAME_ALBUM'];
							}
						?>
					</h2>
					<p><?php if(isset($rows[0]['DESCRIPTION'])){
									echo $rows[0]['DESCRIPTION'];
							} ?>
					</p></div>
	</a>
	</div>
	<input type=hidden name=pathalbum value="<?php 
							if(isset($rows[0]['PATH_ALBUM'])){
									echo $rows[0]['PATH_ALBUM'];
							}
						?>">
	<input type=hidden name=urlalbum value="<?php 
							if(isset($rows[0]['URL_ALBUM'])){
									echo $rows[0]['URL_ALBUM'];
							}
						?>">
</form>

<form action='../source/viewalbumcuoi.php' method='post' id='album2'>
	<div class='view view-first' id='table'>
	<a href='#' onclick='album2.submit()'><img src="../image/album/album2.jpg" />
	<div class="mask"><h2><?php 
							if(isset($rows[1]['NAME_ALBUM'])){
									echo $rows[1]['NAME_ALBUM'];
							}
						?>
					</h2>
					<p><?php if(isset($rows[1]['DESCRIPTION'])){
									echo $rows[1]['DESCRIPTION'];
							} ?>
					</p></div>
	</a>
	</div>
	<input type=hidden name=pathalbum value="<?php 
							if(isset($rows[1]['PATH_ALBUM'])){
									echo $rows[1]['PATH_ALBUM'];
							}
						?>">
	<input type=hidden name=urlalbum value="<?php 
							if(isset($rows[1]['URL_ALBUM'])){
									echo $rows[1]['URL_ALBUM'];
							}
						?>">
</form>

<form action='../source/viewalbumcuoi.php' method='post' id='album3'>
	<div class='view view-first' id='table'>
	<a href='#' onclick='album3.submit()'><img src="../image/album/album3.jpg" />
	<div class="mask"><h2><?php 
							if(isset($rows[2]['NAME_ALBUM'])){
									echo $rows[2]['NAME_ALBUM'];
							}
						?>
					</h2>
					<p><?php if(isset($rows[2]['DESCRIPTION'])){
									echo $rows[2]['DESCRIPTION'];
							} ?>
					</p></div>
	</a>
	</div>
	<input type=hidden name=pathalbum value="<?php 
							if(isset($rows[2]['PATH_ALBUM'])){
									echo $rows[2]['PATH_ALBUM'];
							}
						?>">
	<input type=hidden name=urlalbum value="<?php 
							if(isset($rows[2]['URL_ALBUM'])){
									echo $rows[2]['URL_ALBUM'];
							}
						?>">
</form>

<form action='../source/viewalbumcuoi.php' method='post' id='album4'>
	<div class='view view-first' id='table'>
	<a href='#' onclick='album4.submit()'><img src="../image/album/album4.jpg" />
	<div class="mask"><h2><?php 
							if(isset($rows[3]['NAME_ALBUM'])){
									echo $rows[3]['NAME_ALBUM'];
							}
						?>
					</h2>
					<p><?php if(isset($rows[3]['DESCRIPTION'])){
									echo $rows[3]['DESCRIPTION'];
							} ?>
					</p></div>
	</a>
	</div>
	<input type=hidden name=pathalbum value="<?php 
							if(isset($rows[3]['PATH_ALBUM'])){
									echo $rows[3]['PATH_ALBUM'];
							}
						?>">
	<input type=hidden name=urlalbum value="<?php 
							if(isset($rows[3]['URL_ALBUM'])){
									echo $rows[3]['URL_ALBUM'];
							}
						?>">
</form>

<form action='../source/viewalbumcuoi.php' method='post' id='album5'>
	<div class='view view-first' id='table'>
	<a href='#' onclick='album5.submit()'><img src="../image/album/album5.jpg" />
	<div class="mask"><h2><?php 
							if(isset($rows[4]['NAME_ALBUM'])){
									echo $rows[4]['NAME_ALBUM'];
							}
						?>
					</h2>
					<p><?php if(isset($rows[4]['DESCRIPTION'])){
									echo $rows[4]['DESCRIPTION'];
							} ?>
					</p></div>
	</a>
	</div>
	<input type=hidden name=pathalbum value="<?php 
							if(isset($rows[4]['PATH_ALBUM'])){
									echo $rows[4]['PATH_ALBUM'];
							}
						?>">
	<input type=hidden name=urlalbum value="<?php 
							if(isset($rows[4]['URL_ALBUM'])){
									echo $rows[4]['URL_ALBUM'];
							}
						?>">
</form>